Class CreativeSettingsAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.CreativeSettingsAction
-
public class CreativeSettingsAction extends Action
CreativeSettings is an Action to change the abilities of the user in creative mode.
-
-
Field Summary
Fields Modifier and Type Field Description booleanchangeInvallow user to open inventory and change inventory contentbooleanmoveCamallows user to move the cam originbooleanplaceTilesallows user to place tilesbooleanremoveTilesallows user to remove tilesbooleanrotateCamallows user to rotate the cam around the originbooleanshowInvSlotsshow inventory slotsbooleantilePopupallows user to open tile info / settings popup on user clickbooleanzoomCamallows user to zoom the cam
-
Constructor Summary
Constructors Constructor Description CreativeSettingsAction()Creates a default creative settings class.CreativeSettingsAction(boolean moveCam, boolean rotateCam, boolean zoomCam, boolean tilePopup, boolean placeTiles, boolean removeTiles, boolean changeInv, boolean showInvSlots)Creates new creative settings class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Name of the action in the json package.booleanisLimited()Returns true if the action is limited in challenge mode, by the action cap.java.lang.ObjectserializeData()Serializes the data of the Action.CreativeSettingsActionwithChangeInv(boolean value)With changed changeInv value.CreativeSettingsActionwithMoveCam(boolean value)With changed moveCam value.CreativeSettingsActionwithPlaceTiles(boolean value)With changed placeTiles value.CreativeSettingsActionwithRemoveTiles(boolean value)With changed removeTiles value.CreativeSettingsActionwithRotateCam(boolean value)With changed rotateCam value.CreativeSettingsActionwithShowInvSlots(boolean value)With changed showInvSlots value.CreativeSettingsActionwithTilePopup(boolean value)With changed tilePopup value.CreativeSettingsActionwithZoomCam(boolean value)With changed zoomCam value.
-
-
-
Field Detail
-
moveCam
public boolean moveCam
allows user to move the cam origin
-
rotateCam
public boolean rotateCam
allows user to rotate the cam around the origin
-
zoomCam
public boolean zoomCam
allows user to zoom the cam
-
tilePopup
public boolean tilePopup
allows user to open tile info / settings popup on user click
-
placeTiles
public boolean placeTiles
allows user to place tiles
-
removeTiles
public boolean removeTiles
allows user to remove tiles
-
changeInv
public boolean changeInv
allow user to open inventory and change inventory content
-
showInvSlots
public boolean showInvSlots
show inventory slots
-
-
Constructor Detail
-
CreativeSettingsAction
public CreativeSettingsAction()
Creates a default creative settings class. Can be send to change the abilities of the users in creative mode.
-
CreativeSettingsAction
public CreativeSettingsAction(boolean moveCam, boolean rotateCam, boolean zoomCam, boolean tilePopup, boolean placeTiles, boolean removeTiles, boolean changeInv, boolean showInvSlots)Creates new creative settings class. Can be send to change the abilities of the users in creative mode.- Parameters:
moveCam- allows user to move the cam originrotateCam- allows user to rotate the cam around the originzoomCam- allows user to zoom the camtilePopup- open tile info / settings popup on user clickplaceTiles- allows user to place tilesremoveTiles- allows user to remove tileschangeInv- allow user to open inventory and change inventory contentshowInvSlots- show inventory slots
-
-
Method Detail
-
withMoveCam
public CreativeSettingsAction withMoveCam(boolean value)
With changed moveCam value.- Parameters:
value- new moveCam value- Returns:
- this
-
withRotateCam
public CreativeSettingsAction withRotateCam(boolean value)
With changed rotateCam value.- Parameters:
value- new rotateCam value- Returns:
- this
-
withZoomCam
public CreativeSettingsAction withZoomCam(boolean value)
With changed zoomCam value.- Parameters:
value- new zoomCam value- Returns:
- this
-
withTilePopup
public CreativeSettingsAction withTilePopup(boolean value)
With changed tilePopup value.- Parameters:
value- new tilePopup value- Returns:
- this
-
withPlaceTiles
public CreativeSettingsAction withPlaceTiles(boolean value)
With changed placeTiles value.- Parameters:
value- new placeTiles value- Returns:
- this
-
withRemoveTiles
public CreativeSettingsAction withRemoveTiles(boolean value)
With changed removeTiles value.- Parameters:
value- new removeTiles value- Returns:
- this
-
withChangeInv
public CreativeSettingsAction withChangeInv(boolean value)
With changed changeInv value.- Parameters:
value- new changeInv value- Returns:
- this
-
withShowInvSlots
public CreativeSettingsAction withShowInvSlots(boolean value)
With changed showInvSlots value.- Parameters:
value- new showInvSlots value- Returns:
- this
-
getName
public java.lang.String getName()
Description copied from class:ActionName of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:ActionSerializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeDatain classAction- Returns:
- JSONObject or String
-
-